package com.jh.readme.iu.fragment.videolist;

import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.jh.readme.R;
import com.jh.tools.base.BaseFragment;
import com.jh.tools.bean.NeteastNewsSummary;

import java.util.List;

/**
 * 视频列表
 */
public class VideoListFragment extends BaseFragment<VideoListPresenter,VideoListModel>implements VideoListContract.View {
    protected static final String NEWS_ID = "VideoList_id";
    protected static final String NEWS_TYPE = "VideoList_type";
    protected static final String POSITION = "position";
    private static final String news_title="title_VideoList";
    @Override
    public int getLayoutId() {
        return R.layout.fragment_item_list;
    }
    public static VideoListFragment newInstance(String newsId, String newsType, int position) {
        VideoListFragment fragment = new VideoListFragment();
        Bundle bundle = new Bundle();
        bundle.putString(NEWS_ID, newsId);
        bundle.putString(NEWS_TYPE, newsType);
        bundle.putInt(POSITION, position);
        fragment.setArguments(bundle);
        return fragment;
    }
    public static VideoListFragment newInstance(String title,String newsId,String newsType, int position) {
        VideoListFragment fragment = new VideoListFragment();
        Bundle bundle = new Bundle();
        bundle.putString(NEWS_ID, newsId);
        bundle.putString(NEWS_TYPE, newsType);
        bundle.putString(news_title,title);
        bundle.putInt(POSITION, position);
        fragment.setArguments(bundle);
        return fragment;
    }
    @Override
    public void initView(View baseView) {

    }

    @Override
    public void initPresenter() {

    }

}
